Skip to content

fix(spaces): clearer base-directories UX - #180

Merged
its-mash merged 1 commit into
mainfrom
fix/space-base-dirs-ux
Jun 19, 2026
Merged

fix(spaces): clearer base-directories UX#180
its-mash merged 1 commit into
mainfrom
fix/space-base-dirs-ux

Conversation

@its-mash

Copy link
Copy Markdown
Member

Follow-up to #179 — the base-directories config was clumsy. This makes it obvious.

Changes

  • Open it by clicking the space name. The name is now a button; there's also a labeled "Base directories" link on the card (replacing the unlabeled folder icon).
  • Existing paths lead the modal, each removable in one click (trash per row).
  • "Add folder…" is a clearly-optional dashed action — not the only/primary button, so it no longer reads as "you must add something".
  • A "Done" button closes without adding (plus the X, Esc, and backdrop click).
  • Trimmed the wall of explanatory text to one line.

Test

SpaceBaseDirsModal.test.tsx — lists the space's paths, one-click remove, Done closes without calling add, and renders nothing when no space is selected. Full TS suite green (212).

Frontend-only; no Rust changes.

Reworks the base-dir config surface after review:
- Open it by clicking the space name (now a button) or a labeled "Base
  directories" link on the card — not an unlabeled folder icon.
- The modal leads with the existing paths, each removable in one click.
- "Add folder…" is a clearly-optional dashed action, not the only button.
- A "Done" button (plus X / Esc / backdrop) closes without adding anything.

Test: SpaceBaseDirsModal — lists paths, one-click remove, Done closes without
adding, renders nothing with no space.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit 4a69908 into main Jun 19, 2026
13 checks passed
@its-mash
its-mash deleted the fix/space-base-dirs-ux branch June 19, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant